package com.bitland.demo.api;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

//指明这是一个 spring boot应用
@SpringBootApplication
//允许在注册中心注册
@EnableEurekaClient
@EnableCaching // 开启缓存
@MapperScan("com.bitland.demo.api.mapper")
public class ApiProviderApplication {
    public static void main(String[] args) {
        SpringApplication.run(ApiProviderApplication.class, args);
    }
}
